package modelosqlserver;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

import javax.swing.ImageIcon;

public class Producto {

	private int prd_cod;
	private int gru_cod;
	private String prd_ide;
	private String prd_gro;
	private String prd_tip;
	private String prd_mat;
	private String prd_gau;
	private String prd_col;
	private String prd_des;
	private int prd_stkact;
	private int prd_supuno;
	private int prd_supdos;
	private int prd_suptres;
	private int prd_supcua;
	private int prd_nivel;
	private String prd_bar;
	private ImageIcon prd_foto;
	private File filPrd_foto;
	private FileInputStream fisPrd_foto;
	private int prd_ver;

	/**
	 * Retorna un {@code Sdfsdafadsf} object representing this {@code Integer}'s
	 * value. Ejemplo de comentario para java {@link java.lang.Integer#toString(int)} enlace a otro metodo.
	 * 
	 * @return Este es un resultado de lo que retorna
	 */
	public void imprimirValores() {

		System.out.println(
				prd_cod + " : " +
						gru_cod + " : " +
						prd_ide + " : " +
						prd_gro + " : " +
						prd_tip + " : " +
						prd_mat + " : " +
						prd_gau + " : " +
						prd_col + " : " +
						prd_des + " : " +
						prd_stkact + " : " +
						prd_supuno + " : " +
						prd_supdos + " : " +
						prd_suptres + " : " +
						prd_supcua + " : " +
						prd_supcua + " : " +
						prd_nivel + " : " +
						prd_bar + " : " +
						prd_foto + " : " +
						prd_bar + " : " +
						prd_ver);

	}

	public void setObjeto(Producto parObj) {

		prd_cod = parObj.getPrd_cod();
		gru_cod = parObj.getGru_cod();
		prd_ide = parObj.getPrd_ide();
		prd_gro = parObj.getPrd_gro();
		prd_tip = parObj.getPrd_tip();
		prd_mat = parObj.getPrd_mat();
		prd_gau = parObj.getPrd_gau();
		prd_col = parObj.getPrd_col();
		prd_des = parObj.getPrd_des();
		prd_stkact = parObj.getPrd_stkact();
		prd_supuno = parObj.getPrd_supuno();
		prd_supdos = parObj.getPrd_supdos();
		prd_suptres = parObj.getPrd_suptres();
		prd_supcua = parObj.getPrd_supcua();
		prd_nivel = parObj.getPrd_nivel();
		prd_bar = parObj.getPrd_bar();
		prd_foto = parObj.getPrd_foto();
		prd_ver = parObj.getPrd_ver();

	}// Fin de setObjeto()

	public void limpiarInstancia() {

		gru_cod = 0;
		prd_cod = 0;
		prd_ide = "";
		prd_gro = "";
		prd_tip = "";
		prd_mat = "";
		prd_gau = "";
		prd_col = "";
		prd_des = "";
		prd_stkact = 0;
		prd_supuno = 0;
		prd_supdos = 0;
		prd_suptres = 0;
		prd_supcua = 0;
		prd_nivel = 0;
		prd_bar = "";
		prd_foto = null;
		prd_ver = 0;

	}

	public String getPrd_gro() {
		return prd_gro;
	}

	public void setPrd_gro(String prd_gro) {
		this.prd_gro = prd_gro;
	}

	public int getGru_cod() {
		return gru_cod;
	}

	public void setGru_cod(int gru_cod) {
		this.gru_cod = gru_cod;
	}

	public int getPrd_nivel() {
		return prd_nivel;
	}

	public void setPrd_nivel(int prd_nivel) {
		this.prd_nivel = prd_nivel;
	}

	public int getPrd_supuno() {
		return prd_supuno;
	}

	public void setPrd_supuno(int prd_supuno) {
		this.prd_supuno = prd_supuno;
	}

	public int getPrd_supdos() {
		return prd_supdos;
	}

	public void setPrd_supdos(int prd_supdos) {
		this.prd_supdos = prd_supdos;
	}

	public int getPrd_suptres() {
		return prd_suptres;
	}

	public void setPrd_suptres(int prd_suptres) {
		this.prd_suptres = prd_suptres;
	}

	public int getPrd_supcua() {
		return prd_supcua;
	}

	public void setPrd_supcua(int prd_supcua) {
		this.prd_supcua = prd_supcua;
	}

	public String getPrd_tip() {
		return prd_tip;
	}

	public void setPrd_tip(String prd_tip) {
		this.prd_tip = prd_tip;
	}

	public String getPrd_mat() {
		return prd_mat;
	}

	public void setPrd_mat(String prd_mat) {
		this.prd_mat = prd_mat;
	}

	public String getPrd_col() {
		return prd_col;
	}

	public void setPrd_col(String prd_col) {
		this.prd_col = prd_col;
	}

	public int getPrd_cod() {
		return prd_cod;
	}

	public void setPrd_cod(int prd_cod) {
		this.prd_cod = prd_cod;
	}

	public String getPrd_ide() {
		return prd_ide;
	}

	public void setPrd_ide(String prd_ide) {
		this.prd_ide = prd_ide;
	}

	public String getPrd_gau() {
		return prd_gau;
	}

	public void setPrd_gau(String prd_gau) {
		this.prd_gau = prd_gau;
	}

	public String getPrd_des() {
		return prd_des;
	}

	public void setPrd_des(String prd_des) {
		this.prd_des = prd_des;
	}

	public int getPrd_stkact() {
		return prd_stkact;
	}

	public void setPrd_stkact(int prd_stkact) {
		this.prd_stkact = prd_stkact;
	}

	public ImageIcon getPrd_foto() {
		return prd_foto;
	}

	public void setPrd_foto(ImageIcon prd_foto) {
		this.prd_foto = prd_foto;
	}

	public File getFilPrd_foto() {
		return filPrd_foto;
	}

	public void setFilPrd_foto(File filPrd_foto) {
		this.filPrd_foto = filPrd_foto;
	}

	public FileInputStream getFisPrd_foto() {
		return fisPrd_foto;
	}

	public void setFisPrd_foto(FileInputStream fisPrd_foto) {
		this.fisPrd_foto = fisPrd_foto;
	}

	public String getPrd_bar() {
		return prd_bar;
	}

	public void setPrd_bar(String prd_bar) {
		this.prd_bar = prd_bar;
	}

	public int getPrd_ver() {
		return prd_ver;
	}

	public void setPrd_ver(int prd_ver) {
		this.prd_ver = prd_ver;
	}

}
